﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DTO.ApiEntity.Input
{
    /// <summary>
    /// 预算科目输入DTO
    /// </summary>
    public class FundingItemInput_Dto
    {
        /// <summary>
        ///预算科目名称
        /// </summary>
        [Display(Name = "预算科目名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string budgetitemName { get; set; }

        /// <summary>
        ///预算科目父级Id
        /// </summary>
        [Display(Name = "预算科目父级Id")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string partentId { get; set; }

        /// <summary>
        ///预算科目类别(直接费用、间接费用)
        /// </summary>
        [Display(Name = "预算科目类别(直接费用、间接费用)")]
        [Column(TypeName = "bool")]
        [Editable(true)]
        public bool? budgetType { get; set; }

        /// <summary>
        ///预算科目状态(0代表启用1代表未启用)
        /// </summary>
        [Display(Name = "预算科目状态(0代表启用1代表未启用)")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int budgetiState { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string remark { get; set; }
    }
    /// <summary>
    /// 修改Dto
    /// </summary>
    public class UpdatefundingItem_Dto: FundingItemInput_Dto
    {
        /// <summary>
        /// 预算科目Id
        /// </summary>
        public string budgetItemId { get; set; }
    }
}
